package tq.com.tqteacher.activity.login;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import tq.com.tqcom.base.BaseActivity;
import tq.com.tqteacher.R;
import tq.com.tqteacher.view.TQHeader4ViewHold;

public class TQForgotPwdActivity extends BaseActivity {
    private TQHeader4ViewHold mTQHeader4ViewHold;

    static public void show(Activity base){
        Intent intent = new Intent(base, TQForgotPwdActivity.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_SINGLE_TOP);
        base.startActivity(intent);
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setStatusBar();
        setContentView(R.layout.activity_forgot_pwd_layout);

        findViewById(R.id.login_accout).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                TQLoginActivity.show(TQForgotPwdActivity.this);
            }
        });

        mTQHeader4ViewHold = findViewById(R.id.titleArea);
        mTQHeader4ViewHold.setBackClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                TQForgotPwdActivity.this.finish();
            }
        });
    }
}
